package com.xcapp.xcshop.model;

import lombok.Getter;
import lombok.Setter;

@Setter
@Getter
public class Person {

    private int id;
    private String name;
    private int gender; // 0为女，1为男
    private String hobby;

    public Person(int id, String name, int gender, String hobby) {
        this.id = id;
        this.name = name;
        this.gender = gender;
        this.hobby = hobby;
    }

    @Override
    public String toString() {
        return "Person{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", gender=" + gender +
                ", hobby='" + hobby + '\'' +
                '}';
    }
}

